<template>
  <el-tabs v-model="activeName" @tab-click="test">
    <el-tab-pane :lazy="true" label="用户管理" name="user">
      <UserList></UserList>
    </el-tab-pane>
    <el-tab-pane :lazy="true" label="角色管理" name="role">
      <RoleList></RoleList>
    </el-tab-pane>
    <el-tab-pane :lazy="true" label="资源管理" name="resource">
      <ResourceList></ResourceList>
    </el-tab-pane>
    <el-tab-pane :lazy="true" label="客户端管理" name="client">
      <ClientList></ClientList>
    </el-tab-pane>
  </el-tabs>
</template>

<script>
import UserList from "./user/UserList";
import RoleList from "./role/RoleList";
import ResourceList from "./resource/ResourceList";
import ClientList from "./client/ClientList";

export default {
  name: "Authorization",
  components: {ClientList, ResourceList, RoleList, UserList},
  data() {
    return {activeName: "user"};
  },
  methods: {
    test() {
      this.$forceUpdate();
      console.log(arguments)
    }
  }
}
</script>

<style scoped>

</style>
